<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%@ page import="com.pignest.hotel.spring.Services" %><%@ page import="com.pignest.hotel.system.*" %><%@ page import="com.pignest.framework.util.Utils" %><%
String contextPath = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>会员充值</title>
<link type="text/css" rel="stylesheet" media="screen" href="<%=contextPath%>/css/calendar.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="<%=contextPath%>/css/hotel.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="<%=contextPath%>/css/log.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="<%=contextPath%>/css/flexigrid.css"/>
<script type="text/javascript" src="<%=contextPath%>/scripts/calendar/calendar.js"></script>
<script type="text/javascript" src="<%=contextPath%>/scripts/calendar/calendar-zh.js"></script>
<script type="text/javascript" src="<%=contextPath%>/scripts/calendar/calendar-setup.js"></script>
<script type="text/javascript" src="<%=contextPath%>/scripts/jquery-1.4.2.js"></script>
<script type="text/javascript" src="<%=contextPath%>/scripts/flexigrid.js"></script>
</head>
<body onload="onLoad()">
<div id="wrapper" class="gtable">
  <div style="margin-top: 0px;" id="caption">
    <div class="bg">
      <h1>会员充值</h1>
    </div>
  </div>
  <div id="content-wrapper">
      <div id="content">
          <div class="content">
              <div id="query" style="display: block;">
<form action="<%=contextPath%>/report/memberCharge/" method="get" target="report">
	<input type="hidden" name="view" value=""/>
	<table cellspacing="0" cellpadding="0" class="ctable">
		<tr >
			<td width="60px" align="right">开始时间</td>
			<td>
				<input type="text" value="${param.startTime}" name="startTime" id="startTime" style="width:120px;ime-mode:disabled;"/>
				<input type="button" id="btn_stime" value="…"/>
			</td>
			<td  width="60px" align="right">结束时间</td>
			<td>
				<input type="text" value="${param.endTime}" name="endTime" id="endTime" style="width:120px;ime-mode:disabled;"/>
				<input type="button" id="btn_etime" value="…"/>
			</td>
			<td><input type="button" value="查询" id="reportToHTML" style="padding:3px 10px;"/></td>
			<td><input type="button" value="导出Excel" id="reportToExcel" style="padding:3px 10px;"/></td>
			<td><input type="button" value="导出PDF" id="reportToPDF" style="padding:3px 10px;"/></td>
			<td><input type="button" value="重设" onclick="javascript:$('form input:text').val('');" style="padding:3px 10px;"/></td>
		</tr>
	</table>
</form>
              </div>
              <div style="display: block;">
                	<iframe frameborder="0" width="100%" height="100%" id="report" name="report"></iframe>
			  </div>
		  </div>
	  </div>
  </div>
  <div id="footer">
	<jsp:include page="/modules/global/inc/footer.jsp"></jsp:include>
  </div>
</div>

<script type="text/javascript">
Calendar.setup({
    inputField     :    "startTime",
    ifFormat       :    "%Y-%m-%d",
    button         :    "btn_stime",
    singleClick    :    false,
    step           :    1
});
Calendar.setup({
    inputField     :    "endTime",
    ifFormat       :    "%Y-%m-%d",
    button         :    "btn_etime",
    singleClick    :    false,
    step           :    1
});
$(function(){
	$("#reportToHTML").click(function(){
		var form = this.form;
		form.view.value = "HTML";
		form.submit();
	});
	$("#reportToExcel").click(function(){
		var form = this.form;
		form.view.value = "EXCEL";
		form.submit();
	});
	$("#reportToPDF").click(function(){
		var form = this.form;
		form.view.value = "PDF";
		form.submit();
	});
});
function onLoad() {
	var h = $(document).height();
	$("#report").height(h - $("#caption").height() - $("#query").height() - 60);
}
</script>
</body>
</html>
